Improve handling of dart format stderr output #148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously the
stdoutandstderrfrom the format execution weremerged and there was special handling for 1 specific warning message
followed by a standard 2 lines of boilerplate.
Now
stdoutanstderrare read separately.stderris ignored unlessthere is no output on
stdout. This filters any warnings that didn'tprevent formatting, including the old hardcoded warning as well as a new
one around resolving
analysis_options.yamland any future warningsthat may come up.
When there is no
stdoutcontent treat thestderras using thediagnostic format. Ignore any lines that don't match the error format.
I'm not currently aware of any output here that we wouldn't want to
hide, but if error output becomes important for the user to see we may
need to revisit this design.
systemlisttojob_startwhich allows separating theoutput streams.
callback for when the output has been read.